package com.isunf.common.utils;

/**
 * Created by silence on 2016/12/5.
 */
public enum CodeConstant {

    REQUEST_SUCCESS(1001,"请求成功"),
    PARAMETER_ISNULL(1000,"请求参数不正确"),
    REQUEST_ERROR(9999,"请求失败"),
    ORDER_CANCEL_FAIL(4001,"订单不能取消"),
    GOODS_NOT_ENOUGH(4004,"商品库存不足"),
    GOODS_NOT_EXIST(3001,"商品不存在或已下架"),
    GOLD_NOT_ENOUGH(2001,"金币不足"),
    WSNNUM_EXISTS(5001,"微视号重复");

    private Integer errorcode;
    private String errormsg;

    CodeConstant(Integer errorcode,String errormsg){
        this.errorcode = errorcode;
        this.errormsg = errormsg;
    };

    public Integer getCode() {
        return errorcode;
    }

    public String getMsg() {
        return errormsg;
    }

}
